#ifndef THREADSUB_H
#define THREADSUB_H

#include <QHostAddress>
class QUdpSocket;

class UdpCommunInPeerThread : public QObject
{
    Q_OBJECT
public:
    explicit UdpCommunInPeerThread(quint8 paraID,QObject *parent = 0);

signals:

public slots:
    void slotSendData(QByteArray data,QString destAddr,
        quint16 destPort,quint8 paraID);
    void processPendingDatagrams();
private:
    QUdpSocket *udpSocketPeerThread;
    quint8 ID;
};

#endif // THREADSUB_H
